//
//  LGThirdDelegate.h
//  GameDemo
//
//  Created by Happy on 1/16/17.
//  Copyright © 2017 Happy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LGShareManager.h"
#import "LGLoginManager.h"
#import "LGPayManager.h"

#ifdef ZBLoginWeiXinIsOpen
typedef void(^ZCLoginCallback)(NSError *error, NSDictionary *result, LGLoginType loginType);
#endif
#ifdef ZBShareWeiXinIsOpen
typedef void(^ZCShareCallback)(NSError *error, NSDictionary *result, LGShareType shareType);
#endif
#ifdef LGPayWeiXinIsOpen
typedef void(^LGPayCallback)(NSError *error, NSDictionary *result, LGPayType shareType);
#endif

@interface LGThirdDelegate : NSObject
+ (LGThirdDelegate *)sharedInstance;
#ifdef ZBLoginWeiXinIsOpen
@property (nonatomic, copy) ZCLoginCallback loginCallback;
#endif
#ifdef ZBShareWeiXinIsOpen
@property (nonatomic, copy) ZCShareCallback shareCallback;
#endif
#ifdef LGPayWeiXinIsOpen
@property (nonatomic, copy) LGPayCallback payCallback;
#endif
@end

#if ZBShareWeiXinIsOpen | ZBLoginWeiXinIsOpen
@interface LGThirdDelegate (WeiXinShare) <WXApiDelegate>

@end
#endif

#if ZBShareQQIsOpen | ZBLoginQQIsOpen
@interface LGThirdDelegate (QQShare) <WXApiDelegate>

@end
#endif

#if ZBShareWeiBoIsOpen | ZBLoginWeiBoIsOpen
@interface LGThirdDelegate (WeiBoShare) <WXApiDelegate>

@end
#endif

#if ZBShareFaceBookIsOpen | ZBLoginFacebookIsOpen
@interface LGThirdDelegate (FacebookShare) <FBSDKSharingDelegate>

@end
#endif
